{config_load file="index.conf"}<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <card title="Private chat" ontimer="/{$sys_full_path}>
        <timer value="100" />
        Chat with <a href="/another/profile/{$data.user_id}/">{$data.user_login}</a><br />

		{if sizeof($messages)}
		    {foreach from=$messages item=item}
		        [{$item.tetatet_created|date_format:"%H:%M:%S"}] {if $item.tetatet_user_id_from == $data.user_id}<a href="/another/profile/{$data.user_id}/"><b>{$data.user_login}</b></a>{else}<b>You</b>{/if}: {$item.tetatet_message|escape}<br />
		    {/foreach}
		    {foreach from=$paging item=item key=key}
		        {if $page == $key}{$item}{else}<a href="{$sys_action_path}/{$data.user_id}/{if $key != 0}{$key}/{/if}">{$item}</a>{/if} 
		    {/foreach}
		{else}
		    <p>Empty</p>
		{/if}<br />
		
		<a href="/another/write/{$data.user_id}/">Write message</a><br />
		<a href="{$sys_action_path}/{$data.user_id}/">Refresh</a><br />
		<a href="/another/index/{$data.user_id}/">User menu</a>
    </card>
</wml>